<h1>Listing accounts</h1>
<% model_class = Account %>
<table  class="table table-striped">
  <thead>
    <tr>
      <th><%= model_class.human_attribute_name(:username) %> </th>
      <th><%= model_class.human_attribute_name(:email) %> </th>
      <th><%= model_class.human_attribute_name(:role) %> </th>
      <th><%= model_class.human_attribute_name(:toggle_admin ) %> </th>
      <th><%= model_class.human_attribute_name(:blocked) %> </th>
      <th><%= model_class.human_attribute_name(:signin_count) %> </th>
      <th><%= model_class.human_attribute_name(:last_signin_ip ) %> </th>
      <th><%= model_class.human_attribute_name(:actions) %> </th>
    </tr>
  </thead>

  <tbody>
      <%= render @accounts %>
  </tbody>
</table>
